package com.job.gaoyue.Day0707.Study0707;

/**
 * @author ${高某}
 * @version 1.0
 * @since 2022-07-09 16:43:26
 */
public class Teacher2 {
    public static void main(String[] args) {//静态
        System.out.println(Teacher.number);
        Teacher teacher=null;

        Teacher t2=new Teacher();//无参
        System.out.println(t2.name);

        Teacher t3=new Teacher("老李");//有参
        System.out.println(t3.name);
    }
}